package doubledispatchpattern;

public class SpaceShip implements Collideable {

	public SpaceShip() {
	}

	@Override
	public void collidesWith(Collideable collideable) {
		collideable.collidesWithSpaceShip();

	}

	@Override
	public void collidesWithAstroid() {
		System.out.println("Astroid collides with Spaceship");

	}

	@Override
	public void collidesWithSpaceShip() {
		System.out.println("Spaceship collides with Spaceship");

	}

}
